package com.ruoyi.teach.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;

/**
 * 教材对象 teach_book
 * 
 * @author yepanpan
 * @date 2021-03-15
 */

@ApiModel("教材实体")
@Data
public class TeachBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 适用课程 */
    @ApiModelProperty("适用课程")
    private Long courseId;

    @Excels({
    	@Excel(name = "适用课程", targetAttr = "title")
    })
    private TeachCourse course;
    
    /** 教材名称 */
    @Excel(name = "教材名称")
    @ApiModelProperty("教材名称")
    private String name;

    /** 说明 */
    @ApiModelProperty("说明")
    @Excel(name = "说明")
    private String comment;

    private SysUser user;
    
    private Long users[];
}
